package com.cy.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;



@Transactional(rollbackFor=Exception.class,propagation=Propagation.REQUIRED)
public interface BaseService<T> {
	@Transactional(readOnly=true)
	public T getObject(Serializable id);
	@Transactional(readOnly=true)
	public List<T> getAllObjects();
	public void removeObject(T obj);	
	public T saveObject(T obj);
	public T updateObject(T obj);
}
